package com.appsys.dao;

import com.appsys.pojo.AppInfo;
import com.appsys.pojo.Version;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface AppInfoMapper {
    List<AppInfo> getAppInfoByDevId(Map map);//获取用户id为devId的全部的app信息
    List<AppInfo> getAppInfoList();//获取全部的app信息
    int addInfo(AppInfo appInfo);//添加信息
    int updateInfo(AppInfo appInfo);//修改信息
    int updateInfoByVersion(@Param(value = "date")Date date,Version version);//修改版本信息
    int updateStatusByappId(@Param(value = "appId") int appId,@Param(value = "date")Date date,@Param(value = "status") int status);//修改状态信息
    int deleteInfo(@Param(value = "id")int id);//更据id删除app的所有的信息
    int updateStatus(@Param(value="statusId")int statusId,@Param(value = "id")int id);//更新状态
    List<AppInfo> getAppInfoByLike(Map map); //模糊查询
}
